﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">SPFieldSkypeStatus</Field>
		<Field Name="ParentType">Text</Field>
		<Field Name="TypeDisplayName">Skype account</Field>
		<Field Name="TypeShortDescription">Skype account (login)</Field>
		<Field Name="UserCreatable">TRUE</Field>
		<Field Name="ShowInListCreate">TRUE</Field>
		<Field Name="ShowInSurveyCreate">TRUE</Field>
		<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
		<Field Name="ShowInColumnTemplateCreate">TRUE</Field>
		<Field Name="Sortable">TRUE</Field>
		<Field Name="Filterable">TRUE</Field>
		<Field Name="FieldTypeClass">
      OCPL.SPFieldSkypeStatus,
      SPFieldSkypeStatus,
      Version=1.0.0.0,
      Culture=neutral,
      PublicKeyToken=77d0bef6f861f263
    </Field>
		<Field Name="SQLType">nvarchar</Field>
    <RenderPattern Name="DisplayPattern">
      <FieldSwitch>
        <Expr>
          <Property Select="SkypeIconStyle"/>
        </Expr>
        <Case Value="Small Icon">
          <HTML><![CDATA[<IMG SRC="http://mystatus.skype.com/smallicon/]]></HTML>
          <Column HTMLEncode="FALSE"/>
          <HTML><![CDATA["> ]]></HTML>
        </Case>
        <Case Value="Balloon">
          <HTML><![CDATA[<IMG SRC="http://mystatus.skype.com/balloon/]]></HTML>
          <Column HTMLEncode="FALSE"/>
          <HTML><![CDATA["> ]]></HTML>
        </Case>
        <Case Value="Big Classic">
          <HTML><![CDATA[<IMG SRC="http://mystatus.skype.com/bigclassic/]]></HTML>
          <Column HTMLEncode="FALSE"/>
          <HTML><![CDATA["> ]]></HTML>
        </Case>
        <Case Value="Medium Icon">
          <HTML><![CDATA[<IMG SRC="http://mystatus.skype.com/mediumicon/]]></HTML>
          <Column HTMLEncode="FALSE"/>
          <HTML><![CDATA["> ]]></HTML>
        </Case>
        <Default>
          <HTML><![CDATA[<IMG SRC="http://mystatus.skype.com/smallclassic/]]></HTML>
          <Column HTMLEncode="FALSE"/>
          <HTML><![CDATA["> ]]></HTML>
        </Default>
      </FieldSwitch>
    </RenderPattern>
    <PropertySchema>
      <Fields>
        <Field Name="SkypeIconStyle" DisplayName="Select the style for status icon" Type="Choice" Format="RadioButtons">
          <Default>Small Classic</Default>
          <CHOICES>
            <CHOICE>Balloon</CHOICE>
            <CHOICE>Big Classic</CHOICE>
            <CHOICE>Small Classic</CHOICE>
            <CHOICE>Small Icon</CHOICE>
            <CHOICE>Medium Icon</CHOICE>
          </CHOICES>
        </Field>
        <Field Name="Behaviour" DisplayName="Select the click behaviour (in item mode)" Type="Choice" Format="RadioButtons">
          <Default>Chat</Default>
          <CHOICES>
            <CHOICE>Chat</CHOICE>
            <CHOICE>Call</CHOICE>
            <CHOICE>Add</CHOICE>
            <CHOICE>User Info</CHOICE>
          </CHOICES>
        </Field>
      </Fields>
    </PropertySchema>
	</FieldType>
</FieldTypes>